package com.yfp.operation.mapper;

import com.yfp.operation.domain.MarCouponPosition;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 *
 * @description 针对表【mar_coupon_position(优惠券+定位关联表)】的数据库操作Mapper
 * @createDate 2024-07-16 16:20:52
 * @Entity domain.com.yfp.operation.MarCouponPosition
 */
public interface MarCouponPositionMapper extends BaseMapper<MarCouponPosition> {

    /**
     * 根据优惠券id查询
     *
     * @param marCouponId
     * @return
     */
    List<MarCouponPosition> selectByMarCouponId(Long marCouponId);

    /**
     * 根据优惠券id列表查询
     *
     * @param marCouponIds
     * @return
     */
    List<MarCouponPosition> selectByMarCouponIds(List<Long> marCouponIds);

    /**
     * 新增
     * @param couponId
     * @param positionIdList
     */
    void add(@Param("couponId") Long couponId, @Param("positionIdList") List<String> positionIdList);

}




